﻿using System;
using MvcMall.Core.Contacts.Tasks;

namespace MvcMall.AdminWeb.Manage.AdminUsers
{
    public partial class Index : ManageBasePage
    {
        private IAdminUserTask _adminUserTask;

        protected void Page_Load(object sender, EventArgs e)
        {
            ValidatePagePower("AdminUserIndex");
            _adminUserTask = GetInstance<IAdminUserTask>();

            if (!IsPostBack)
            {
                rptAdminUsers.DataSource = _adminUserTask.GetAll();
                rptAdminUsers.DataBind();
            }
        }
    }
}